package com.weaver.drools.business.execution.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.weaver.drools.business.execution.service.IDCauseofactiontype449Service;
import com.weaver.drools.common.dao.DCauseofactiontype449Dao;
import com.weaver.drools.common.entity.DCauseofactiontype449;
@Service
public class DCauseofactiontype449ServiceImpl implements IDCauseofactiontype449Service {

	@Autowired
	private DCauseofactiontype449Dao DCauseofactiontype449Dao;
	@Override
	public DCauseofactiontype449 findById(Long causeofactiontypeid) {
		// TODO Auto-generated method stub
		return DCauseofactiontype449Dao.findDCauseofactiontype449ByCauseofactiontypeid(causeofactiontypeid);
	}

	@Override
	public void saveDCauseofactiontype449(DCauseofactiontype449 causeofactiontype449) {
		DCauseofactiontype449Dao.saveOrUpdate(causeofactiontype449);
	}

	@Override
	public void updateDCauseofactiontype449(DCauseofactiontype449 causeofactiontype449) {
		DCauseofactiontype449Dao.saveOrUpdate(causeofactiontype449);
	}

	@Override
	public void deleteById(Long causeofactiontypeid) {
		DCauseofactiontype449Dao.deleteById(causeofactiontypeid);
	}

	@Override
	public List<DCauseofactiontype449> findAll() {
		List<DCauseofactiontype449> list= DCauseofactiontype449Dao.findAll();
		return list;
	}

}
